<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.MutableImage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_mutable_image.html">MutableImage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_mutable_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.MutableImage类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.MutableImage 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_mutable_image.png" usemap="#awtk.MutableImage_map" alt=""/>
  <map id="awtk.MutableImage_map" name="awtk.MutableImage_map">
<area href="classawtk_1_1_image_base.html" alt="awtk.ImageBase" shape="rect" coords="0,56,119,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa7a0cb34bad3d4f8abbeaa6b18bbc3bd"><td class="memItemLeft" align="right" valign="top"><a id="aa7a0cb34bad3d4f8abbeaa6b18bbc3bd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MutableImage</b> (long nativeObj)</td></tr>
<tr class="separator:aa7a0cb34bad3d4f8abbeaa6b18bbc3bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:a2bc2ed96c5dc9501bfdf0a79a409839d inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="a2bc2ed96c5dc9501bfdf0a79a409839d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ImageBase</b> (long nativeObj)</td></tr>
<tr class="separator:a2bc2ed96c5dc9501bfdf0a79a409839d inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe3237e68270a74c238840abc559a483 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#abe3237e68270a74c238840abc559a483">setImage</a> (String name)</td></tr>
<tr class="separator:abe3237e68270a74c238840abc559a483 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c9c088486f3a96bec627192179d43dc inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a9c9c088486f3a96bec627192179d43dc">setRotation</a> (double rotation)</td></tr>
<tr class="separator:a9c9c088486f3a96bec627192179d43dc inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0ee43967050216adad167235a7848a3 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ad0ee43967050216adad167235a7848a3">setScale</a> (double scale_x, double scale_y)</td></tr>
<tr class="separator:ad0ee43967050216adad167235a7848a3 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651b84b0abc63a7e8bcd88e8916960de inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a651b84b0abc63a7e8bcd88e8916960de">setAnchor</a> (double anchor_x, double anchor_y)</td></tr>
<tr class="separator:a651b84b0abc63a7e8bcd88e8916960de inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16469d2873d45852603596f9395660f7 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a16469d2873d45852603596f9395660f7">setSelected</a> (boolean selected)</td></tr>
<tr class="separator:a16469d2873d45852603596f9395660f7 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b201f564a63aea4488f7c6090f81181 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a6b201f564a63aea4488f7c6090f81181">setSelectable</a> (boolean selectable)</td></tr>
<tr class="separator:a6b201f564a63aea4488f7c6090f81181 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a54077cd841d920f54f5c33c84cf9c9 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a7a54077cd841d920f54f5c33c84cf9c9">setClickable</a> (boolean clickable)</td></tr>
<tr class="separator:a7a54077cd841d920f54f5c33c84cf9c9 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17aa095933a2767502d48fcdc1701b30 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a17aa095933a2767502d48fcdc1701b30">getImage</a> ()</td></tr>
<tr class="separator:a17aa095933a2767502d48fcdc1701b30 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32cb2a987fc896328c15f90db069fe37 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a32cb2a987fc896328c15f90db069fe37">getAnchorX</a> ()</td></tr>
<tr class="separator:a32cb2a987fc896328c15f90db069fe37 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f07a92c5ee39bede5a4dc7185d06846 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a4f07a92c5ee39bede5a4dc7185d06846">getAnchorY</a> ()</td></tr>
<tr class="separator:a4f07a92c5ee39bede5a4dc7185d06846 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad03bf2dc911393faafa26f566e180812 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ad03bf2dc911393faafa26f566e180812">getScaleX</a> ()</td></tr>
<tr class="separator:ad03bf2dc911393faafa26f566e180812 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d0ac46dc50c8f9702df123328ae8d64 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a7d0ac46dc50c8f9702df123328ae8d64">getScaleY</a> ()</td></tr>
<tr class="separator:a7d0ac46dc50c8f9702df123328ae8d64 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac456be20e29c6b7d7570ef28e5f696cc inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#ac456be20e29c6b7d7570ef28e5f696cc">getRotation</a> ()</td></tr>
<tr class="separator:ac456be20e29c6b7d7570ef28e5f696cc inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6281abe1eb0c47ccb3605bf49ce7cc2 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#aa6281abe1eb0c47ccb3605bf49ce7cc2">getClickable</a> ()</td></tr>
<tr class="separator:aa6281abe1eb0c47ccb3605bf49ce7cc2 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a692819204ca7601b6ee5e95bb831cf3c inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a692819204ca7601b6ee5e95bb831cf3c">getSelectable</a> ()</td></tr>
<tr class="separator:a692819204ca7601b6ee5e95bb831cf3c inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd78f0ba96dc8f8d5f6fc61186604a04 inherit pub_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#abd78f0ba96dc8f8d5f6fc61186604a04">getSelected</a> ()</td></tr>
<tr class="separator:abd78f0ba96dc8f8d5f6fc61186604a04 inherit pub_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:adc11220e7abe4bdeed2b7b59a9cdeb7e"><td class="memItemLeft" align="right" valign="top"><a id="adc11220e7abe4bdeed2b7b59a9cdeb7e"></a>
static <a class="el" href="classawtk_1_1_mutable_image.html">MutableImage</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:adc11220e7abe4bdeed2b7b59a9cdeb7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:a60e5286e5d477f7f274f0edaea089a7c inherit pub_static_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="a60e5286e5d477f7f274f0edaea089a7c"></a>
static <a class="el" href="classawtk_1_1_image_base.html">ImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a60e5286e5d477f7f274f0edaea089a7c inherit pub_static_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0677c028ec88d0d23ff57ad0ed2ec358 inherit pub_static_methods_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_image_base.html">ImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_image_base.html#a0677c028ec88d0d23ff57ad0ed2ec358">cast</a> (Widget widget)</td></tr>
<tr class="separator:a0677c028ec88d0d23ff57ad0ed2ec358 inherit pub_static_methods_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a0f6abbff63ad784b35a178b0751055ac"><td class="memItemLeft" align="right" valign="top"><a id="a0f6abbff63ad784b35a178b0751055ac"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a0f6abbff63ad784b35a178b0751055ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_image_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classawtk_1_1_image_base')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_image_base.html">awtk.ImageBase</a></td></tr>
<tr class="memitem:ad9fb294c0c5f541ad5961ab979e05fdc inherit pub_attribs_classawtk_1_1_image_base"><td class="memItemLeft" align="right" valign="top"><a id="ad9fb294c0c5f541ad5961ab979e05fdc"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ad9fb294c0c5f541ad5961ab979e05fdc inherit pub_attribs_classawtk_1_1_image_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>mutable图片控件。</p>
<p>像摄像头和视频的图像是变化的，每一帧都不同，我们把这类图片称为mutable image。</p>
<p>本控件辅助实现摄像头和视频的显示功能。</p>
<p>mutable_image_t是image的子类控件，image_base_t的函数均适用于mutable_image_t控件。</p>
<p>在xml中使用"mutable\_image"标签创建mutable图片控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">mutable_image</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>/&gt;</div></div><!-- fragment --><p>更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mutable_image.xml">mutable image</a></p>
<p>在c代码中使用函数mutable_image_create创建mutable图片控件。如：</p>
<p>创建之后:</p>
<p>需要用mutable_image_set_prepare_image设置准备图片的回调函数。</p>
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mutable_image.c">mutable image demo</a></p>
<p>一般不需通过style来设置控件的显示风格，如果在特殊情况下需要，可以参考其它控件。 </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>output/MutableImage.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
